<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>7-数据类型转换Number-String</title>
	</head>
	<body>
		<script type="text/javascript">
			// 通过函数 toString()
			// 强制转换 String()
			// 拼接  巧妙
			var number = 9.9;//Number
			console.log("原数据类型:",typeof number);
			
			var one = toString(number);
			console.log("数据类型1:",typeof one);
			
			var two = String(number);
			console.log("数据类型2:",typeof two);
			
			var three = number +'';
			console.log("数据类型3:",typeof three);
			
			/**
			 * 原数据类型: number
			   数据类型1: string
			   数据类型2: string
			   数据类型3: string
			 */
		</script>
	</body>
</html>
